/*
* shared_memory.h
*
*  Created on: May 27, 2013
*      Author: Aden
*/

#ifndef SHARED_MEMORY_H__
#define SHARED_MEMORY_H__

#include "mutex.h"
#include "condition_variable.h"

typedef struct shared_memory {
 int pair_number; // identifier for pair variables
 Mutex lock;
 ConditionVariable full;
 ConditionVariable empty;
} SharedMem;

typedef SharedMem * SharedPtr;

#endif /* SHARED_MEMORY_H__ */
